<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <h1>My first SVG</h1>
    <!-- 1 -->
    <svg>
        <circle cx="100" cy="50" r="40" stroke="black" stroke-width="2" fill="red" />  //圆形
    </svg>
    <br>
    <!-- 2 -->
    <svg>
        <rect width="300" height="100" style="fill: rgb(0,0,255); stroke-width: 1;stroke:rgb(0,0,0) ;" ></rect>//矩形
    </svg>
    <br>
    <!-- 3 -->
    <svg style="overflow:visible;">
        <ellipse cx="300" cy="80" rx="100" ry="50" style="fill:yellow;stroke:purple;stroke-width:2;" />
    </svg>
    <br>
    <!-- 4 -->
    <svg>
        <line x1="0" y1="0" x2="200" y2="200" style="stroke:rgb(255,0,0);stroke-width:2"/>
    </svg>
    <br>
    <!-- 5 -->
    <svg height="210" width="500">
        <polygon points="200,10 250,190 160,210" style="fill:lime;stroke:purple;stroke-width:1"/>
    </svg>
    <br>
    <!-- 6 -->
    <svg>
        <polyline points="10,40 40,40 40,100 8,10" style="fill:none;stroke:black;stroke-width:3" />
    </svg>
    <br>
</body>

</html>